package com.zhiche.lisa.bms.pojo.vo.psup;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author linbao
 * @date 2019-06-20
 */
@Data
@ToString
@ApiModel(value = "PsupOilPriceVO", description = "人送市场油价VO")
public class PsupOilPriceVO {

    /**
     * id
     */
    private Long id;
    /**
     * 燃油类型; 0-0#柴油, 1-92#汽油
     */
    @ApiModelProperty(value = "价格", name = "price", dataType = "BigDecimal")
    private Integer oilType;
    /**
     * 价格
     */
    @ApiModelProperty(value = "价格", name = "price", dataType = "BigDecimal")
    private BigDecimal price;
    /**
     * 生效日期
     */
    @JSONField(format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "生效日期", name = "effectiveDate", dataType = "Date")
    private Date effectiveDate;
    /**
     * 失效日期
     */
    @JSONField(format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "失效日期", name = "invalidDate", dataType = "Date")
    private Date invalidDate;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", name = "creator", dataType = "Long")
    private Long creator;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", name = "gmtCreate", dataType = "Date")
    private Date gmtCreate;
}
